//
//  NRWCarNavigationView.h
//  New_Runway
//
//  Created by mack on 2018/1/22.
//  Copyright © 2018年 NelsonJ. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef enum navgationStyle
{
    navgationStyle_deepColor = 0,
    navgationStyle_lightColor = 1,
    
}navgationStyle;

@interface NRWCarNavigationView : UIView
@property (nonatomic, strong) UIButton *leftItem;
@property (nonatomic, strong) UIButton *rightItem;
@property (nonatomic, strong) UILabel *titleLabel;
@property (nonatomic, strong) UIView *lineView;

@property (nonatomic, assign) navgationStyle MyNavgationStyle;
@property (weak,nonatomic) UIViewController *myselfController;
//设置导航栏样式和主题
-(instancetype)initWithController:(UIViewController *)myselfController andTitle:(NSString *)title andStyle:(navgationStyle)myStyle;
-(void)changeMyNavgationStyle:(navgationStyle)myStyle;

//导航栏左边按钮
-(void)setupleftItemImage:(UIImage *)leftImage;
-(void)setupLeftItemImage:(UIImage *)leftImage newRect:(CGRect)rect;
-(void)setupLeftItemTitle:(NSString *)leftTitle;
//导航栏右边边按钮
-(void)setupRightItemImage:(UIImage *)rightImage;
-(void)setupRightItemImage:(UIImage *)RightImage newRect:(CGRect)rect;
-(void)setupRightItemTitle:(NSString *)rightTitle;
- (void)setTitle:(NSString *)title;
@end
